<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>Student Media Congress | Register</title>
        <meta name="description" content="Fresh from its successful opening salvo last year, the DLSU Student Media Congress is back!">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body class="register">
        <!--[if lt IE 7]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
        


        <div id="container">

            <!-- NAVIGATION -->
            <nav class="fixed">
                <div id="logo"><a href="../../../"></a></div>
                <ul>
                    <li><a href="../../../#about">About</a></li>
                    <li class="divider">/</li>
                    <li><a href="../../../#speakers">Speakers</a></li>
                    <li class="divider">/</li>
                    <li><a href="../../../#schedule">Schedule</a></li>
                    <li class="divider">/</li>
                    <li class="active"><a href="#">Register</a></li>
                    <li class="divider">/</li>
                    <li class="inactive"><a>News</a></li>
                    <li class="divider">/</li>
                    <li><a href="../../../#contact">Contact</a></li>
                </ul>
            </nav>

            <!-- HEADER -->
            <header></header>

            <!-- PLUG -->
            <div class="plug"></div>

            <!-- CONTENT -->
            <div id="content">
                <div class="container">

                    <h1>Register</h1>
<?php
$firstname = array(
	'name'	=> 'firstname',
	'id'	=> 'firstname',
	'value'	=> set_value('firstname'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
$lastname = array(
	'name'	=> 'lastname',
	'id'	=> 'lastname',
	'value'	=> set_value('lastname'),
	'maxlength'	=> 30,
	'size'	=> 30,
	);
$school = array(
	'name'	=> 'school',
	'id'	=> 'school',
	'value'	=> set_value('school'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
$age = array(
	'name'	=> 'age',
	'id'	=> 'age',
	'value'	=> set_value('age'),
	'maxlength'	=> 30,
	'size'	=> 30,
);
if ($use_username) {
	$username = array(
		'name'	=> 'username',
		'id'	=> 'username',
		'value' => set_value('username'),
		'maxlength'	=> $this->config->item('username_max_length', 'tank_auth'),
		'size'	=> 30,
	);
}
$email = array(
	'name'	=> 'email',
	'id'	=> 'email',
	'value'	=> set_value('email'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
$contactnum = array(
	'name'	=> 'contactnum',
	'id'	=> 'contactnum',
	'value'	=> set_value('contactnum'),
	'maxlength'	=> 16,
	'size'	=> 30,
);
$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'value' => set_value('password'),
	'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
	'size'	=> 30,
);
$confirm_password = array(
	'name'	=> 'confirm_password',
	'id'	=> 'confirm_password',
	'value' => set_value('confirm_password'),
	'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
	'size'	=> 30,
);
$captcha = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha',
	'maxlength'	=> 8,
);
?>

<?php echo form_open($this->uri->uri_string()); ?>
<table id="register">
	<tr>
		<td><?php echo form_label('First Name', $firstname['id']); ?></td>
		<td><?php echo form_input($firstname); ?></td>
		<td style="color: red;"><?php echo form_error($firstname['id']); ?><?php echo isset($errors[$firstname['name']])?$errors[$firstname['name']]:''; ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Last Name', $lastname['id']); ?></td>
		<td><?php echo form_input($lastname); ?></td>
		<td style="color: red;"><?php echo form_error($lastname['id']); ?><?php echo isset($errors[$lastname['name']])?$errors[$lastname['name']]:''; ?></td>
	</tr>
    <tr>
		<td><?php echo form_label('School', $school['id']); ?></td>
		<td><?php echo form_input($school); ?></td>
		<td style="color: red;"><?php echo form_error($school['id']); ?><?php echo isset($errors[$school['name']])?$errors[$school['name']]:''; ?></td>
	</tr>
    <tr>
		<td><?php echo form_label('Age', $age['id']); ?></td>
		<td><?php echo form_input($age); ?></td>
		<td style="color: red;"><?php echo form_error($age['id']); ?><?php echo isset($errors[$age['name']])?$errors[$age['name']]:''; ?></td>
	</tr>
	<?php if ($use_username) { ?>
	<tr>
		<td><?php echo form_label('Username', $username['id']); ?></td>
		<td><?php echo form_input($username); ?></td>
		<td style="color: red;"><?php echo form_error($username['name']); ?><?php echo isset($errors[$username['name']])?$errors[$username['name']]:''; ?></td>
	</tr>
	<?php } ?>
	<tr>
		<td><?php echo form_label('Email Address', $email['id']); ?></td>
		<td><?php echo form_input($email); ?></td>
		<td style="color: red;"><?php echo form_error($email['name']); ?><?php echo isset($errors[$email['name']])?$errors[$email['name']]:''; ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Contact Number', $contactnum['id']); ?></td>
		<td><?php echo form_input($contactnum); ?></td>
		<td style="color: red;"><?php echo form_error($contactnum['name']); ?><?php echo isset($errors[$contactnum['name']])?$errors[$contactnum['name']]:''; ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Password', $password['id']); ?></td>
		<td><?php echo form_password($password); ?></td>
		<td style="color: red;"><?php echo form_error($password['name']); ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Confirm Password', $confirm_password['id']); ?></td>
		<td><?php echo form_password($confirm_password); ?></td>
		<td style="color: red;"><?php echo form_error($confirm_password['name']); ?></td>
	</tr>

	<?php if ($captcha_registration) {
		if ($use_recaptcha) { ?>
	<tr>
		<td colspan="2">
			<div id="recaptcha_image"></div>
		</td>
		<td>
			<a href="javascript:Recaptcha.reload()">Get another CAPTCHA</a>
			<div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a></div>
			<div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a></div>
		</td>
	</tr>
	<tr>
		<td>
			<div class="recaptcha_only_if_image">Enter the words above</div>
			<div class="recaptcha_only_if_audio">Enter the numbers you hear</div>
		</td>
		<td><input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /></td>
		<td style="color: red;"><?php echo form_error('recaptcha_response_field'); ?></td>
		<?php echo $recaptcha_html; ?>
	</tr>
	<?php } else { ?>
	<tr>
		<td colspan="3">
			<p>Enter the code exactly as it appears:</p>
			<?php echo $captcha_html; ?>
		</td>
	</tr>
	<tr>
		<td><?php echo form_label('Confirmation Code', $captcha['id']); ?></td>
		<td><?php echo form_input($captcha); ?></td>
		<td style="color: red;"><?php echo form_error($captcha['name']); ?></td>
	</tr>
	<?php }
	} ?>
</table>
<div id="register-button"><?php echo form_submit('register', 'Register'); ?></div>
<?php echo form_close(); ?>

                </div>
            </div>

            <!-- FOOTER -->
            <footer>

                <!-- NAVIGATION -->
                <nav>
                    <div class="button"><a href="#">Arrow</a></div>
                </nav>

                <!-- COPYRIGHT -->
                <p>© 2014 Student Media Congress</p>

                <!-- SOCIAL MEDIA -->
                <ul id="social">
                    <li class="text">Let&#39;s Catalyze</li>
                    <li id="fb"><a href="https://www.facebook.com/DLSUSMC" target="_blank">Facebook</a></li>
                    <li id="tw"><a href="https://twitter.com/dlsu_smc" target="_blank">Twitter</a></li>
                    <li id="ig"><a href="http://instagram.com/dlsusmc" target="_blank">Instagram</a></li>
                    <li id="ask"><a href="http://ask.fm/dlsu_smc" target="_blank">ask.fm</a></li>
                </ul>

            </footer>

        </div>



        <!-- SCRIPTS -->
        <script>
            (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
            function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
            e=o.createElement(i);r=o.getElementsByTagName(i)[0];
            e.src='//www.google-analytics.com/analytics.js';
            r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
            ga('create','UA-49442027-1');ga('send','pageview');
        </script>
       
       
    </body>
</html>